import request from "@/network/request";

export function orderRoom(roomId, name, cardId, phone, remark) {
  return request({
    url: '/order/room',
    method: 'post',
    data: {
      roomId,
      name,
      cardId,
      phone,
      remark
    }

  })
}

export function vipOrderRoom(roomId, cardId, remark) {
  return request({
    url: '/order/roomv',
    method: 'post',
    data: {
      roomId,
      cardId,
      remark
    }
  })
}

export function billRoom(roomId) {
  return request({
    url: '/order/room',
    method: 'put',
    data:{
      roomId
    }
  })
}

export function getTodayProfit() {
  return request({
    url: '/order/stat',
    method: 'get'
  })
}